package com.yanqu.road.server.cmd.drugstore;

import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.drugstore.DrugStoreMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_DRUG_STORE_HARD_CASE_GET_RANK, desc = "疑难杂症 查看配方榜")
public class DrugStoreHardCaseGetRankCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        player.sendPacket(Protocol.U_DRUG_STORE_HARD_CASE_GET_RANK, DrugStoreMgr.getHardCaseRank());
    }

    @Override
    public void sendData(GamePlayer player) {
    }
}
